package com.wang.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.wang.domain.TongueDiagnosis;
import com.wang.domain.TonguePic;
import com.wang.mapper.TonguePicMapper;
import com.wang.service.TonguePicService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author WangZai
 * @since 2023-04-27
 */
@Service
public class TonguePicServiceImpl extends ServiceImpl<TonguePicMapper, TonguePic> implements TonguePicService {

    @Override
    public boolean saveTonguePic(TonguePic tonguePic) {
        return this.save(tonguePic);
    }

    @Override
    public boolean saveTonguePicList(List<TonguePic> tonguePicList) {
        return this.saveBatch(tonguePicList);
    }

    @Override
    public boolean deleteTonguePic(Integer tonguePicId) {
        return this.removeById(tonguePicId);
    }

    @Override
    public TonguePic getTonguePicById(Integer tonguePicId) {
        return this.getById(tonguePicId);
    }

    @Override
    public List<TonguePic> getTonguePicList() {
        return this.list();
    }

    @Override
    public boolean updateTonguePic(TonguePic tonguePic) {
        return this.updateById(tonguePic);
    }
}
